package com.example.firstdemo.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface StudentRepository extends JpaRepository<Student, Long> {
  
    List<Student> findByEmail(String email);//自动配置，不用手写SQL
}
